home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000354_fdc@columbia.edu_Wed Oct 29 17:21:52 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: TEST NETWORK CONNECTION
  5. Date: 29 Oct 2003 17:51:13 GMT
  6. Organization: Columbia University
  7. Lines: 29
  8. Message-ID: <slrnbpvvgh.751.fdc@sesame.cc.columbia.edu>
  9. References: <4c64004.0310290631.3b5f136c@posting.google.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1067449873 19581 128.59.59.56 (29 Oct 2003 17:51:13 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 29 Oct 2003 17:51:13 GMT
  15. User-Agent: slrn/0.9.7.4 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14608
  17.  
  18. In article <4c64004.0310290631.3b5f136c@posting.google.com>, Carl wrote:
  19. : I am trying to write a script which looks to see if a netwok
  20. : connection is available and if it is sent files over the network.  If
  21. : the network is not available I want to initiate a script that will
  22. : send the files over a land line phone.
  23. :  
  24. echo "Trying net..."
  25. set host xxx
  26. if fail {
  27.     echo "Net connection failed - trying phone..."
  28.     set modem type yyy
  29.     set speed 57600     ; or whatever
  30.     dial 7654321
  31.     if fail exit 1 "Phone connection failed too"
  32. }
  33.  
  34. ; If you reach this point you have a connection,
  35. ; and you can log in, start Kermit on the other end,
  36. ; transfer files, and log out.
  37.  
  38. See "help set host" for SET HOST command details.  See "help dial" and
  39. "help set dial" and "help set modem" for dialing options and details.
  40. See:
  41.  
  42.   http://www.columbia.edu/kermit/ckscripts.html
  43.  
  44. for a scripting tutorial and examples.
  45.  
  46. - Frank
  47.